package chixing.day19.homework.work1_1;

public class NewUserDiscount implements DiscountStrategy {
    //新用户优惠：新用户首单立减 20 元。
    @Override
    public double applyDiscount(double originalPrice, User user, Product product) {
        user.setNewUser(false);
        return originalPrice -= 20;
    }
}
